<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-pageadd',plain:true"
   onclick="crud_add_${object.code}()">
    新增
</a>
<script type="text/javascript">
    var crud_add_${object.code} = function () {
        var grid = $('#${gridId}');
        loadDialog(grid, '新增${object.name}', '/form/add/${object.code}');
    };
</script>